#include "net/net.h"

#include "serveraccepter.h"

int main() {
	net::NetAddress address("127.0.0.1", 10001);
	net::IReactor* reactor = net::GetReactor();
	net::IAccepter* accepter = net::GetAccepter();
	servermanager::ServerAccepter server_accepter;

	accepter->Listen(address);
	accepter->SetHandler(&server_accepter);

	reactor->Dispatch();
	return 0;
}
